import Vue from "vue";

//1.导入路由
import VueRouter from 'vue-router' 

//2. 激活路由--安装路由
Vue.use(VueRouter);

 import Home from "./GIAO/tebbar/HomeGiao.vue";
 import Member from "./GIAO/tebbar/MemberGiao.vue";
 import Search from "./GIAO/tebbar/SearchGiao.vue";
 import Shop from "./GIAO/tebbar/ShopGiao.vue";
 //引入home子路组件
 import NewsList from  "./GIAO/home/newList.vue";
 // 3.创建路由对象
var router=new VueRouter({
    routes:[//配置路由规则
         {path:"/",redirect:"/home"},
         {path:"/home",component:Home},
         {path:"/member",component:Member},
         {path:"/shop",component:Shop},
         {path:"/search",component:Search},
         {path:"/home/newslist",component:NewsList}
       
    ],
    linkActiveClass:'mui-active'
})


export default router;